package com.dsl.dao;

import com.dsl.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @Description User数据层接口
 * @Author dsl
 * @Date 2024/8/30 下午9:47
 * @Version 1.0
 */
@Mapper
public interface UserMapper {

    User getById(int id);

    User getByName(String username);

    User getByEmail(String email);

    int addUser(User user);

    int updateStatus(int id, int status);

    int updateHeader(int id, String headerUrl);

    int updatePassword(int id, String password);
}
